id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Booleansdivisibility

prev  |  next  |  chance

Determining a number's divisibility
by Savonnah '23

def divisibilty_name(num):
    result = num % 3
    if result == 0:
        return True
    else:
        return False
Function Call  Return Value
divisibilty_name(3)
divisibilty_name(56)
divisibilty_name(6)
divisibilty_name(61)

Experiment with this code on Gitpod.io

⬅ Back